<template>
  <div class="header">
    <div class="header-left">
      <div class="iconfont user-logined" @click="showSide">&#xe63f;</div>
    </div>
    <div class="header-middle">
      <span class="iconfont">&#xe651;</span>
      搜索感兴趣的会议
    </div>
    <div class="header-right">
      城市
      <span class="iconfont">&#xe640;</span>
    </div>
  </div>
</template>

<script>
export default {
  name: 'Header',
  methods: {
    showSide () {
      this.$store.dispatch('showSideBar')
    }
  }
}
</script>

<!-- Add "scoped" attribute to limit CSS to this component only -->
<style lang="stylus" scoped>
  .header
    display: flex
    background: #00bcd4
    line-height: .86rem
    color: #fff
    .header-left
      width: .64rem
      float: left
      .user-logined
        text-align: center
        font-size: .4rem
    .header-middle
      flex: 1
      background: #fff
      height: .64rem
      line-height: .64rem
      margin-top: .12rem
      margin-left: .2rem
      border-radius:.1rem
      color: #ccc
      padding-left: .2rem
    .header-right
      width: 1.24rem
      float: right
      text-align: center
</style>
